#{extends 'blog.html' /}
#{set title:'This is the first page of gaoheng\'s playground!' /}

<div id="rightPan">
	#{list items:entrys, as:'entry'}
		<div class="entry">
			<div class="entry-top">
				<h2 class="entry-title">${entry.title}</h2>
				<p class="entry-meta">
					#{if entry?.tags()}
					标签[
						#{list items:entry.tags(), as:'tag'}
							#{if tag_isLast}
							<a href="@{Blogs.tag(tag.id)}">${tag.name}</a>
							#{/if}
							#{else}
							<a href="@{Blogs.tag(tag.id)}">${tag.name}</a>,
							#{/else}
						#{/list}
					]
					#{/if}
					发表于：<span class="entry-pubtime">${entry.createTime.format('yyyy-MM-dd HH:mm')}</span>
				</p>
			</div>
			<div class="entry-main">
			${entry?.abstracts()?.raw() }
			</div>
			<div class="entry-btm">
				<p class="more"><a href="@{Blogs.show(entry.id)}">阅读全文</a></p>				
			</div>			
		</div>		
    #{/list}    	
</div>